package com.example.oasystem.service.impl;

import com.example.oasystem.dao.process.AoaProcessListDaoOfl;
import com.example.oasystem.entity.dept.AoaDept;
import com.example.oasystem.entity.process.*;
import com.example.oasystem.entity.user.AoaUser;
import com.example.oasystem.service.AoaProcessListdServiceOfl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AoaProcessListdServiceImplOfl implements AoaProcessListdServiceOfl {

    @Autowired
    AoaProcessListDaoOfl aoaProcessListDaoOfl;

    @Override
    public PageInfo<AoaProcessListOfl> aoaProcessListPaginationSearch(Long processUserId, String baseKey, int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<AoaProcessListOfl> aoaProcessListOfls = aoaProcessListDaoOfl.aoaProcessListPaginationSearch(processUserId, baseKey);
        PageInfo<AoaProcessListOfl> PageInfo = new PageInfo<>(aoaProcessListOfls);
        return PageInfo;
    }


}
